package org.abluedog.ssfb.events;

import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

public class EatEvent extends Event {

    private static final HandlerList handlers = new HandlerList();

    private Player player;

    private Material material;

    @NotNull
    @Override
    public HandlerList getHandlers() {
        return handlers;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }

    public EatEvent(Player player, Material material) {
        this.player = player;
        this.material = material;
    }

    public Player getPlayer() {
        return player;
    }

    public Material getMaterial() {
        return material;
    }
}
